var str = "Ring";
str.length.range().forEach(function(i){
	document.write( " <b>" + str.substring(i,i+1) + "</b> " + str.charCodeAt(i) + "<br />" )
});